package com.ouyu.factory.exception;

/**
 * @program: trySpring
 * @description: beans异常
 * @author: hz21056677
 * @create: 2021-08-10 13:45
 **/
public class BeansException extends RuntimeException{
    private String message;

    public BeansException() {
        super();
    }

    public BeansException(String message) {
        super(message);
        this.message = message;
    }

    public BeansException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "BeansException{" +
                "message='" + message + '\'' +
                '}';
    }
}
